import { fromJS } from 'immutable'

// 添加电影数据
export const setFilms = (state, data) => {
  return state.update('films', v => v.push(fromJS(data)))
}